<?php

namespace App\Model;

use App\Services\Code;

class LineUpModel extends BaseModel
{
    protected $table = 'line_up_price';
    protected $primaryKey = 'line_up_price_id';
    protected $fillable = [
        'now_price',
        'money',
        'user_id',
        'status',
        'shop_id',
    ];

    public function shopInfo()
    {
        return $this->hasOne(BusinessModel::class,'businesses_id','shop_id');
    }
    public function userInfo()
    {
        return $this->hasOne(UsersModel::class,'user_id','user_id');
    }
}
